<template>
  <div class='child'>
    我是一个子组件，我在红色的海洋里
    <input type="button" value="点我隐身" @click="upIsShow">
  </div>
</template>

<script>
export default {
    data() {
      return {

      };
    },
  computed: {},
  watch: {},
  methods: {
    upIsShow(){
        this.$emit('update:isShow',false)
    }
  },
}
</script>
<style scoped>
.child {
    width: 100%;
    height: 500px;
    background-color: #f00;
}
</style>